<template>
  <el-table-column :prop="col.prop" :label="`${col.label}(${col.score}分)`" align="center" >
    <template v-for="(item, index) of col.children">
      <column-item v-if="item.children.length > 0" :key="index" :col="item"></column-item>
      <el-table-column v-else :key="index" :label="`${item.label}(${item.score}分)`" width="140" :prop="item.prop" align="center">
      </el-table-column>
    </template>
  </el-table-column>
</template>

<script>
  export default {
    name: "columnItem",
    props: {
      col: {
        type: Object,
      },
    },
  };
</script>